package Mediator_Pattern.temperature;


// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Client {
    public static void main(String[] args) {
        Component_Mwdiator component_mwdiator;
        component_mwdiator=new Component_Mwdiator();

        Button button=new Button();
        Text text=new Text();
        Strip strip=new Strip();

        button.setMwdiator(component_mwdiator);
        text.setMwdiator(component_mwdiator);
        strip.setMwdiator(component_mwdiator);

        component_mwdiator.text=text;
        component_mwdiator.strip=strip;
        component_mwdiator.button=button;

        button.play();
        System.out.println("***");
        text.play();
        System.out.println("****");
        strip.play();
    }
}
